package beanScope;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * @Author quan
 * @Description 将Service类注入到UseController类
 * @Date 2023/7/14 15:23
 */

@Controller
public class UserController2 {
    @Autowired
    private User user1;
    public void sayHi(){
        System.out.println("UC2调用结果"+user1);
    }
}
